﻿<?xml version="1.0" encoding="utf-8" ?>
<NAMESPACE name="N:NGridDrawer.Partitions" >
  <TYPE name="IPartitionDrawer">
    <MEMBER name="Paint">
      <summary>
        Draw the <paramref name="partition"/> in the <paramref name="graphic"/>
        with <paramref name="location"/> as a top left coordinate
      </summary>
      <param name="graphic">This is the graphics used to paint</param>
      <param name="clipBounds">This should be the maximum bounds of the partition</param>
      <param name="partition">This is the partition to paint</param>      
    </MEMBER>

  </TYPE>
  <TYPE name="PartitionGrid">
    <remarks>
      the partition process takes care mainly in the data grid about
      its rows heights, columns widths and the bounds in which partitions may be contained
      <include file='Partitions.doc.xml' 
               path='NAMESPACE/TYPE[@name="PartitionGrid"]/MEMBER[@name="BuildPartitionLevels"]/remark[@name="clipHeights"]'/>
      <include file='Partitions.doc.xml'
         path='NAMESPACE/TYPE[@name="PartitionGrid"]/MEMBER[@name="BuildPartitionColumns"]/remark[@name="clipHeights"]'/>
    </remarks>

    <MEMBER name="BuildPartitionLevels">
      <remark name="clipHeights">
        <para>
          <paramref name="clipHeights"/> represents the maximums heights of partitionLevels.
          the indexed i partitionLevel's height is bounded by clipHeights[i] if i is lower than clipHeights.Length;
          otherwise partitionLevel's height is bounded by the last clipHeights' element
        </para>
      </remark>
    </MEMBER>

    <MEMBER name="BuildPartitionColumns">
      <remark name="clipWidths">
        <para>
          <paramref name="clipWidths"/> represents the maximums widths of partitionColumns.
          the indexed i partitionColumn's width is bounded by clipWidths[i] if i is lower than clipWidths.Length;
          otherwise partitionColumn's width is bounded by the last clipWidths' element
        </para>
      </remark>
    </MEMBER>
  </TYPE>
</NAMESPACE>